//项目的配置文件

export const layout1 = {
	//发布表单排布
	labelCol: {
		span: 5
	},
	wrapperCol: {
		span: 16
	}
};

export const layout2 = {
	//查询表单排布
	labelCol: {
		span: 5
	},
	wrapperCol: {
		span: 19
	}
};

export const tailLayout1 = {
	//查询按钮排布
	wrapperCol: { offset: 5, span: 19 }
};

export const layout3 = {
	//查询表单排布
	labelCol: {
		span: 6
	},
	wrapperCol: {
		span: 12
	}
};

export const layout4 = {
	//查询表单排布
	labelCol: {
		span: 6
	},
	wrapperCol: {
		span: 18
	}
};

export const tailLayout2 = {
	//查询按钮排布
	wrapperCol: { offset: 6, span: 18 }
};

export const tailLayout3 = {
	//查询按钮排布
	wrapperCol: { offset: 18, span: 6 }
};

export const orderState = {
	//订单状态
	0: "已取消",
	10: "待付款",
	20: "待发货",
	40: "待收货",
	50: "已收货"
};

export const goodsStateMap = {
	//OMS商品状态
	1: "待拿货",
	2: "已拿货",
	3: "已分拣",
	4: "已发货",
	5: "部分拿货"
};

export const orderType = {
	//发货方式
	1: "bufa",
	2: "zifa",
	3: "daifa",
	4: "zhifa"
};

export const orderTypeName = {
	//发货方式中文
	1: "不发",
	2: "自发",
	3: "代发",
	4: "直发"
};

//0 无旗 1 红旗  2 黄旗  3 绿旗  4 蓝旗  5 紫旗
export const flag = {
	0: "",
	1: "iconqizhihong",
	2: "iconqizhihuang",
	3: "iconqizhilv",
	4: "iconqizhilan",
	5: "iconqizhizi"
};

//1:jd,2:sn ,3:sn-lt ,4:1688 ,5:wph,6: youzan ,7:beibei,8:taobao ,9:pdd ,10:hqbs, 11:yunji, 12:ks, 13:qimen
export const platformType = {
	//平台类型英文
	"-1": "zhaojiafang",
	0: "offline",
	1: "jd",
	2: "sn",
	3: "sn-lt",
	4: "1688",
	5: "wph",
	6: "youzan",
	7: "beibei",
	8: "taobao",
	9: "pdd",
	10: "hqbs",
	11: "yunji",
	12: "ks",
	13: "qimen",
	14: "zjfscht",
	15: "dy",
	16: "wph_jitx",
	19: "jd_yc",
	20: "jst",
	21: "tmall",
	22: "sn_fd",
	23: "jl_hyk",
	24: "1688_c2m",
	25: "wechat_shop",
	27: "wdt",
	32: "de_wu",
	40: "red_book"
};

//商品中心平台映射
//1:jd,2:sn ,3:sn-lt ,4:1688 ,5:wph,6: youzan ,7:beibei,8:taobao ,9:pdd ,10:hqbs, 11:yunji, 12:ks, 13:qimen
// 平台类型:-1:zjfsc(找家纺商城),0:线下店铺 1:jd(京东),2:sn(苏宁),3:suning-lt(苏宁特卖),4:1688(阿里巴巴),5:wph(唯品会),
// 6:youzan(有赞),7:beibei(贝贝),8:taobao(淘宝),9:pdd(拼多多),10:hqbs(环球捕手),11:yunji(云集),12:ks(快手),13:qimen(奇门),
// 14:(zjfscht)找家纺商城后台,15:dy(抖音)16:wph_jtx(唯品会jitx),17:dy_df(抖音代发),18:tm(天猫供销),19:jd_yc(京东云仓);',
export const platformTypeName = {
	//平台类型中文
	"-1": APP_TITLE,
	0: "线下店铺",
	1: "京东",
	2: "苏宁",
	3: "苏宁特卖",
	4: "阿里巴巴",
	5: "唯品会",
	6: "有赞",
	7: "贝贝",
	8: "淘宝",
	9: "拼多多",
	10: "环球捕手",
	11: "云集",
	12: "快手",
	13: "奇门",
	14: "商户后台",
	15: "抖音",
	16: "唯品会JITX",
	18: "天猫",
	19: "京东云仓",
	20: "聚水潭",
	21: "天猫供销",
	22: "苏宁厂送",
	23: "好衣库",
	24: " 淘工厂",
	25: "视频号小店",
	26: "WMS淘宝",
	27: "旺店通",
	32: "得物",
	40: "小红书",
	99: "童品云仓"
};

export const outOrderStatus = {
	//订单状态
	10: "待付款",
	20: "待发货",
	30: "已发货",
	40: "交易完成",
	50: "退款",
	60: "交易关闭"
};

//订单异常类型
export const orderErrorConfig = [
	"goodsError",
	"dizhi",
	"tuikuan",
	"yifahuo",
	"quehuo",
	"xj",
	"yichang",
	"quxiaodingdan",
	"match",
	"yichang",
	"stockLack",
	"storeNotOpen"
];

//订单异常映射
export const orderErrorMap = [
	{
		type: 0,
		desc: "正常订单",
		icon: null
	},
	{
		type: 1,
		desc: "商品变更",
		icon: "goodsError"
	},
	{
		type: 2,
		desc: "地址变更",
		icon: "dizhi"
	},
	{
		type: 3,
		desc: "退款异常", // (退款中,退款完成,商品取消会标记)
		icon: "tuikuan"
	},
	{
		type: 4,
		desc: "发货异常", //(非找家纺)
		icon: "yifahuo"
	},
	{
		type: 5,
		desc: "缺货",
		icon: "quehuo"
	},
	{
		type: 6,
		desc: "下架",
		icon: "xj"
	},
	{
		type: 7,
		desc: "挂起",
		icon: "yichang"
	},
	{
		type: 8,
		desc: "取消订单",
		icon: "quxiaodingdan"
	},
	{
		type: 9,
		desc: "商品匹配异常",
		icon: "match"
	},
	{
		type: 10,
		desc: "挂（大B商城挂起）",
		icon: "yichang"
	},
	{
		type: 11,
		desc: "库存不足",
		icon: "stockLack"
	},
	{
		type: 12,
		desc: "门店未开门",
		icon: "storeNotOpen"
	}
];

//订单商品异常映射
export const orderGoodsErrorMap = [
	{
		type: 1,
		desc: "退款",
		icon: "storeNotOpen"
	},
	{
		type: 5,
		desc: "缺货",
		icon: "storeNotOpen"
	},
	{
		type: 6,
		desc: "下架",
		icon: "xj"
	},
	{
		type: 7,
		desc: "分仓不足",
		icon: "SeparateLack"
	},
	{
		type: 8,
		desc: "总仓不足",
		icon: "AggregateLack"
	},
	{
		type: 9,
		desc: "商品匹配异常",
		icon: "storeNotOpen"
	},
	{
		type: 12,
		desc: "门店未开门",
		icon: "storeNotOpen"
	}
];

//支付方式映射
export const payMethMap = {
	1: "余额",
	2: "支付宝",
	3: "转账充值",
	4: "微信",
	5: "优惠补助",
	6: "账期",
	7: "线下支付",
	8: "银行卡充值",
	9: "抵扣",
	10: "企业支付宝",
	88: '商户支付宝收款',
	100: '余额+抵扣'
};

//左侧菜单栏不展示的页面路径集合
export const noMenuPath = [
	"/account/personage",
	"/account/enterprise",
	"/account/applyCash",
	"/account/capital",
	"/account/offlineRecharge"
];

export const commonColor = {
	//主色，大面积的使用，用于重要icon
	commonColor1: "#0165D5",
	//辅助色
	commonColor2: "#0071F0",
	//重要级的文字信息，内容标题信息
	commonColor3: "#15263A",
	//表单正文颜色
	commonColor4: "#4F5E70",
	//辅助文字颜色
	commonColor5: "#999999",
	//页面背景颜色
	commonColor6: "#F5F9FF",
	//模块背景颜色
	commonColor7: "#E8F4FF",
	//部分弱icon颜色
	commonColor8: "#CCCCCC",
	//用于金额颜色或者警示性的文字
	commonColor9: "#FF2D51",
	//用户金额颜色，一般代表负支出
	commonColor10: "#00B87C",
	//用于页面一级标题，导航文字，部分按钮
	commonColor11: "#333333",
	//正文颜色，二级标题文字颜色
	commonColor12: "#666666",
	//提示，警示文字
	commonColor13: "#FF7A23",

	commonColor14: "#DAD9DB",

	commonColor15: "#FFFFFF"
};

export const faceOrderTypeName = {
	1: "淘宝",
	2: "拼多多",
	3: "京东",
	4: "京东无界",
	5: "顺丰",
	6: "京东物流云",
	7: "唯品会",
	8: "唯品会",
	14: "快手",
	15: "抖音",
	25: "微信视频号",
	26: "WMS淘宝",
	28: "极兔速递",
	33: "得物",
	40: "小红书"
};

//标签icon的回显
export const labelIconMap = {
	1: "iconbiaoqianhon",
	2: "iconbiaoqianlan",
	3: "iconbiaoqianhuang",
	4: "iconbiaoqianzi",
	5: "iconbiaoqianhei"
};

//标签name的回显
export const labelNameMap = {
	1: "红色标",
	2: "蓝色标",
	3: "黄色标",
	4: "紫色标",
	5: "黑色标"
};

export const logisticErrorTypeName = [
	"无运单号",
	"已获取运单号",
	"正在获取运单号",
	"运单号不足",
	"未知异常",
	"寄件人为空",
	"未设置面单获取平台",
	"店铺未授权",
	"运单号获取失败",
	"收件人为空",
	"地址解密失败",
	"云仓无需获取"
];

export const logisticsCompanyList = [
	"中通快递",
	"申通快递",
	"顺丰快递",
	"圆通快递",
	"韵达快递",
	"京东快递",
	"邮政快递",
	"丰网速运",
	"百世汇通快递",
	"天天快递",
	"德邦物流",
	"其他"
];


//标签icon的回显
export const labelTypeMap = {
	red: "iconbiaoqianhon",
	blue: "iconbiaoqianlan",
	yellow: "iconbiaoqianhuang",
	purple: "iconbiaoqianzi",
	black: "iconbiaoqianhei"
};

export const labelColorMap = {
	red: "红色标",
	blue: "蓝色标",
	yellow: "黄色标",
	purple: "紫色标",
	black: "黑色标"
};